﻿@model App.Web.Models.PictureFormModel
@{
    ViewBag.Title = "ShowCaseEdit";
    Layout = "~/Views/Shared/_RootLayout.cshtml";
}
<div class="showcase">
    <h3>
        公司橱窗</h3>
    <p class="reback">
        <a href="@Url.Action("ShowCaseList","Setting")">
            <img src="@Url.Content("~/Content/images/gif-0162.png")" />返回列表</a></p>
    <div class="showcase_need_write">
        <img src="@Url.Content("~/Content/images/need_img.jpg")" /><span>=必须项</span></div>
    @using (Html.BeginForm("ShowCaseEdit", "Setting", new {Type = ViewBag.Type }, FormMethod.Post, new { enctype = "multipart/form-data" }))
    {
        @Html.ValidationSummary(true)
        <table cellpadding="0" cellspacing="0" class="showcase_table">
            <tr>
                <td align="right">
                    标题：
                </td>
                <td>
                    @Html.TextBoxFor(x => x.Title, new { Class = "title_input" })
                </td>
            </tr>
            @if (Model != null)
            { 
            <tr>
                <td align="right">
                    图片：
                </td>
                <td>
                    <img src="@Url.Action("GetImage", new { id = Model.Id })" width="279" height="195" />
                </td>
            </tr>
            }
            <tr>
                <td align="right">
                    上传图片：
                </td>
                <td>
                    @*                    <img src="images/showcase_img.jpg" class="showcase_img" /><input type="image" src="images/upload_btns.png"
                        class="upload_btns" />*@
                    <input type="file" name="file1" />
                </td>
            </tr>
        </table>
        <div class="line">
        </div>
        <div class="register_btns">
            <input type="image" src="@Url.Content("~/Content/images/register_btns.jpg")" /></div>


    }
</div>
